import { View } from "../../../mvc/core/View";
import { ObjCreate } from "../common/ObjCreate";
import { Language } from "../../../../extend/language/Language";
import { GlobalStyle } from "../../../common/global/GlobalStyle";
import { TExpDrugConfig } from "../../../../Message/Db/Tables/TExpDrugConfig";
//class DrugExpByLvSp
    
    export  class DrugExpByLvSp extends View
    {
        constructor()
        {
            super();
            this.initView();
            return;
        }

        /* internal  */initView(): void
        {
            this._decTx = ObjCreate.createGTextField(Language.getString(74501), 0, 0, 100, 20, this, GlobalStyle._textFormat2);
            this._decTx.autoSize = flash.text.TextFieldAutoSize.LEFT;
            this._expTx = ObjCreate.createGTextField("", 0, 20, 164, 20, this, GlobalStyle._textFormat5);
            this._expTx.autoSize = flash.text.TextFieldAutoSize.CENTER;
            return;
        }

        public setData(arg1: TExpDrugConfig): void
        {
            if (arg1) 
            {
                if (arg1.exp) 
                {
                    this._expTx.text = Language.getStringByParam(74502, arg1.exp);
                }
                else 
                {
                    this._expTx.text = Language.getStringByParam(74502, 0);
                }
            }
            else 
            {
                this._expTx.text = Language.getStringByParam(74502, 0);
            }
            return;
        }

        /* internal */ /* var */_decTx: Object /* flash.text.TextField */;

        /* internal */ /* var */_expTx: Object /* flash.text.TextField */;
    }
